package com.zjdiepu.www.model.zx.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

import javax.validation.GroupSequence;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

import com.zjdiepu.www.base.annotation.Add;
import com.zjdiepu.www.model.zx.dto.ZxQueryCreditApply;
import com.zjdiepu.www.model.zx.dto.ZxQueryCreditApplySub;

/**
 * zx_征信查询申请<br/>
 * @author zhangpp<br/>
 * @time 2017年05月09日 15时16分<br/>
 * @since 1.0<br/>
 */
@ApiModel(value="ZxRestRequest", description="信查询申请参数")
@GroupSequence({Add.class, ZxRestRequest.class})
public class ZxRestRequest implements Serializable {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 征信查询申请
	 */
	@ApiModelProperty(name="zxQueryCreditApply",value="征信查询申请")
	@NotNull(message="征信查询申请{message.null}",groups={Add.class})
	@Valid
	private ZxQueryCreditApply zxQueryCreditApply;
	/**
	 * 征信查询子申请
	 */
	@ApiModelProperty(name="zxQueryCreditApplySubs",value="征信查询子申请")
	@NotEmpty(message="征信查询子申请{message.null}",groups={Add.class})
	@Valid
	private List<ZxQueryCreditApplySub> zxQueryCreditApplySubs;
	public ZxQueryCreditApply getZxQueryCreditApply() {
		return zxQueryCreditApply;
	}
	public void setZxQueryCreditApply(ZxQueryCreditApply zxQueryCreditApply) {
		this.zxQueryCreditApply = zxQueryCreditApply;
	}
	public List<ZxQueryCreditApplySub> getZxQueryCreditApplySubs() {
		return zxQueryCreditApplySubs;
	}
	public void setZxQueryCreditApplySubs(
			List<ZxQueryCreditApplySub> zxQueryCreditApplySubs) {
		this.zxQueryCreditApplySubs = zxQueryCreditApplySubs;
	}
	
}